package com.book.service;

import com.book.entity.BookType;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author SuperYu  2024/7/30
 */
public interface BookTypeService {

    BookType findBookTypeByName(String name);

    int addBookType(BookType bookType);

    PageInfo<BookType> findBookTypeByPage(int pageNum, int pageSize);

    List<BookType> findAllBookType();

    BookType findBookTypeByEdit(int id, String name);
}
